#!/usr/bin/python
# -*- coding: utf-8 -*-

__all__ = [u'GuiSimpleDialog']

__date__ = "28 juil. 2010"
__author__ = "guillaume"

from _pylot.qtgui.misc import load_designer_file
from _pylot.qtgui.interfaces.widgetinterface import WidgetInterface

_GuiDialog, WidgetClass = load_designer_file(u'dialogbasic.ui')
class GuiSimpleDialog(WidgetClass, WidgetInterface, _GuiDialog):
  u"""
  A very simple divider
  """
  def __init__(self, handler=None, widget=None):
    WidgetInterface.__init__(self, handler)
    WidgetClass.__init__(self)
    self.setupUi(self) # Designer file initialization
    if widget :
      self.addContent(widget)

  def addContent(self, widget):
    self.content_layout.addWidget(widget)
    self.addpyLotWidget(widget)


